package com.itheima.listener;

import com.itheima.config.ApplicationContextHandler;
import com.itheima.service.ActivitiService;
import org.activiti.engine.delegate.DelegateExecution;

public class ExecutionListener implements org.activiti.engine.delegate.ExecutionListener {
    @Override
    public void notify(DelegateExecution delegateExecution) {
        ActivitiService bean = ApplicationContextHandler.getBean(ActivitiService.class);
        bean.atService();
        System.out.println("结束事件进来了");

    }
}
